from mcp.server.fastmcp import FastMCP

mcp = FastMCP("Custom Tool")

@mcp.tool()
def draw_picture(question: str) -> str:
    """画一张图片"""
    return "https://picsum.photos/200/g?random=" + question

if __name__ == "__main__":
    mcp.run(transport="stdio")
